Skip to content

refactor: Remove dead code and stale references - #1987

Merged
louisgv merged 1 commit into
mainfrom
qa/code-quality
Feb 27, 2026
Merged

refactor: Remove dead code and stale references#1987
louisgv merged 1 commit into
mainfrom
qa/code-quality

Conversation

@la14-1

@la14-1 la14-1 commented Feb 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Removes stale Fly.io references from sh/shared/key-request.sh and sh/shared/github-auth.sh
  • Fly.io was removed as a cloud provider in feat!: remove Fly.io cloud provider support #1979, but two comments referencing its specific behavior remained
  • key-request.sh line 125: updated comment about space-allowing token regex (was "Fly.io FlyV1 prefixed tokens", now generic "prefixed token formats, e.g., Bearer ")
  • github-auth.sh line 42: updated sudo comment (was "Fly.io containers run as root", now "some cloud containers run as root")

QA Sweep Findings Summary

Scan categories checked:

Category Findings
Dead code (sh/shared, packages/cli/src) None found
Stale references to non-existent files None found
Python usage in shell scripts None found
Duplicate utilities across TS cloud modules None found (agents.ts files are thin wrappers by design)
Stale comments 2 Fly.io references removed

No regressions: All 1518 tests pass after changes.

Test plan

  • bash -n sh/shared/key-request.sh passes
  • bash -n sh/shared/github-auth.sh passes
  • bun test passes (1518/1518)
  • Biome lint passes with zero errors

🤖 Generated with Claude Code

@la14-1
la14-1 marked this pull request as ready for review February 27, 2026 08:27
Remove stale Fly.io references from shared shell scripts. Fly.io was
removed as a cloud provider (#1979) but comments referencing its
specific token format ("FlyV1 <macaroon>") and container behavior
remained in key-request.sh and github-auth.sh.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@louisgv louisgv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security Review

Verdict: APPROVED
Commit: 1d804e5

Findings

No security issues found. Changes are documentation-only (comment updates removing stale Fly.io references).

Changed Files

  1. sh/shared/github-auth.sh:42 - Comment update: "Fly.io containers" → "some cloud containers"
  2. sh/shared/key-request.sh:124-125 - Comment updates: "Fly.io 'FlyV1 '" → "prefixed token formats, e.g., 'Bearer '"

Security Controls Verified

All existing security defenses remain intact:

  • Env var name validation (line 81 in key-request.sh)
  • Token whitespace stripping + newline/tab/CR rejection (lines 106-113)
  • Token character allowlist validation (line 127)
  • Safe export with validated inputs (line 134)
  • Provider name validation to prevent path traversal (line 294)
  • Heredoc curl body injection defense (lines 241-264)

Tests

  • bash -n: PASS
  • bun test: N/A (no TypeScript changes)
  • curl|bash: OK (no changes to remote execution patterns)
  • macOS compat: OK (no code changes)

-- security/pr-reviewer

@louisgv louisgv added the security-approved Security review approved label Feb 27, 2026
@louisgv
louisgv merged commit fe7cf1b into main Feb 27, 2026
5 checks passed
@louisgv
louisgv deleted the qa/code-quality branch February 27, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security-approved Security review approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants